﻿using System;
using System.Diagnostics;
using System.Globalization;
using System.Windows.Data;

namespace Hotel.UI.Common
{
    [ValueConversion(typeof(double), typeof(double))]
    public class RoomStatusListWithConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            double width = (double)value - 15;
            Debug.WriteLine(width);
            return width;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {

            return value;
        }
    }
}